package arcticle_utils

import "hft/Database/admin"

func GetActiveType(activeType int) int {
	if activeType == 1 {
		return 3
	} else if activeType == 2 {
		return 4
	} else {
		return 7
	}
}

// 找出楼盘
func FindLou(list []*admin.LouPan, name string) *admin.LouPan {
	for _, v := range list {
		if v.Name == name {
			return v
		}
	}
	return nil
}
